import React from "react";
import Header from "../../components/Header";
import ListItem from "../../components/ListItem";

const MyCollect = () => {
  const list = JSON.parse(localStorage.getItem('collectList')) || []
  return <div>
    <Header title="我的收藏"></Header>

    {
      list.map((v, i) => {
        return <ListItem v={v} key={i}></ListItem>
      })
    }
  </div>;
};

export default MyCollect;
